package com.pan.admin.module.distribute.entity;

import com.pan.admin.common.annotation.Excel;
import com.pan.admin.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 智能分配组对象 loan_distribute_group
 *
 * @author ts
 * @date 2023-09-10
 */
@ApiModel("智能分配组对象")
public class LoanDistributeGroup extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty("主键id")
    private Long id;

    /**
     * 组名称
     */
    @Excel(name = "组名称")
    private String name;

    /**
     * 组链接代理地址
     */
    @Excel(name = "组链接代理地址")
    private String linkProxyUrl;

    /**
     * 每个链接最大点击数
     */
    @Excel(name = "每个链接最大点击数")
    private Long linkMaxClick;

    /** 唯一编码，填写域名则会自动填充 */
    private String uniqueCode;

    /**
     * 状态0禁用1启用
     */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setLinkProxyUrl(String linkProxyUrl) {
        this.linkProxyUrl = linkProxyUrl;
    }

    public String getLinkProxyUrl() {
        return linkProxyUrl;
    }

    public void setLinkMaxClick(Long linkMaxClick) {
        this.linkMaxClick = linkMaxClick;
    }

    public Long getLinkMaxClick() {
        return linkMaxClick;
    }

    public String getUniqueCode() {
        return uniqueCode;
    }

    public void setUniqueCode(String uniqueCode) {
        this.uniqueCode = uniqueCode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("linkProxyUrl", getLinkProxyUrl())
                .append("linkMaxClick", getLinkMaxClick())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("uniqueCode", getUniqueCode())
                .append("status", getStatus())
                .toString();
    }
}
